package com.ykq.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ykq.dao.UserDao;
import com.ykq.entity.User;
import com.ykq.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: tui-education
 * @description:
 * @author: 闫克起2
 * @create: 2022-04-13 09:51
 **/
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public User selectByUsername(String username) {
        QueryWrapper<User> wrapper=new QueryWrapper<>();
        wrapper.eq("username",username);
        User user = userDao.selectOne(wrapper);
        return user;
    }
}




















